const infraCloud = require('@mctech/infra-cloud')
const casClient = require('@mctech/cas-client')
const mountResources = require('./mount-resources')
const server = infraCloud.appServer({
  servicePath: '/sq/inspection/',
  compress: true
})

// 用户登录验证
casClient.load(server, {
  ignorePathes: ['/sq/inspection/lib/**', '/sq/inspection/assets/**', '/sq/inspection/jwt/**']
})

const startPromise = server.use(mountResources).start()

module.exports = startPromise
